package com.javasm.domin.entity.orderEntity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.apache.poi.ss.usermodel.VerticalAlignment;

import java.util.Date;

/**
 * @Author：liyangsong
 * @Version：1.0
 * @Date：2021/11/29-17:56
 * @Since:jdk1.8
 * @Description:
 */

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("b2c_receiver")
@ContentRowHeight(35)
@HeadRowHeight(40)
@ColumnWidth(25)
// 头背景设置成红色 IndexedColors.RED.getIndex()
@HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER, verticalAlignment = VerticalAlignment.CENTER, fillForegroundColor = 6)
// 头字体设置成20
@HeadFontStyle(fontHeightInPoints = 20, color = 1)
// 内容的背景设置成绿色 IndexedColors.GREEN.getIndex()
@ContentStyle(verticalAlignment = VerticalAlignment.CENTER, horizontalAlignment = HorizontalAlignment.CENTER)
// 内容字体设置成20
@ContentFontStyle(fontHeightInPoints = 18)
public class B2cReceiverExcel {
    /**
     * 订单ID
     *
     */
    @ExcelProperty("订单编号")
    private Long orderId;
    /**
     * 收货人名称
     */
    @ExcelProperty("收货人姓名")
    private String receiverName;


    /**
     *
     */
    @ExcelProperty("邮政编码")
    private String postalCode;

    /**
     * 收货人地址
     */
    @ExcelProperty("收货人地址")
    private String receiverAdress;

    /**
     * 收货人电子邮箱
     */
    @ExcelProperty("收货人电子邮箱")
    private String receiverEmail;

    /**
     * 收货人座机号
     */
    @ExcelProperty("收货人座机号码")
    private String receiverTelephone;

    /**
     * 手机号码
     */
    @ExcelProperty("收货人手机号")
    private String receiverPhone;

    /**
     * 自提时间
     */
    @ExcelProperty("自提时间")
    private Date selfMentiontime;

    /**
     * 备注
     */
    @ExcelProperty("备注")
    private String receiverNotation;
    /**
     * 会员号
     */
    @ExcelProperty("会员号")
    private String vipId;

    /**
     * 汇款人姓名
     */
    @ExcelProperty("汇款人姓名")
    private String payName;
}
